import Vue from 'vue'
import Vuex from 'vuex'
import router from '@/route'
import user from './user'
import authRouter from '@/route/authRouter'

Vue.use(Vuex)

const store = new Vuex.Store({
    state:{

    },
    getters:{

    },
    mutations:{
        addAuthRouter(){
            console.log(1231213);
            router.addRoute(authRouter);
        }
    },
    actions:{

    },
    modules:{
        user
    }
})

export default store;
console.log('store',store)